//各项目情况

import { http } from "@/utils/http";

export type commonResult<T> = {
  code: number;
  msg: string;
  result: T;
};

export type infoType = {

	id?: number,
	projectId?: number,
	projectName?: string,
	inspectWait ?: number,
	inspectNormal ?: number,
	inspectErro?: number,
}
export type infoTypeList = {
  data: infoType[];
  total: number;
};

const List = '/business/inspection/v2/inspection/mission/statistic/project';
export const getList = (params?: object) => {
  return http.request<commonResult<infoTypeList>>("get", "/business/inspection/v2/inspection/mission/statistic", {
    params
  });
};
//巡检概况
export const missionstatistic = (params?: object) => {
    return http.request<commonResult<infoTypeList>>("get", List, {
      params
    });
  };
